package com.fxsh.auth.service.impl;

import com.alibaba.fastjson.JSON;
import com.fxsh.auth.model.LoginUser;
import com.fxsh.auth.service.SessionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

/**
 * @Author: lrz
 * @Date: 2020/10/18:13:42
 */
@Component
public class SessionInRedis implements SessionService {
    @Autowired
    private RedisTemplate redisTemplate;
    @Override
    public void saveSession(LoginUser user) {
        String value = JSON.toJSONString(user);

    }

    @Override
    public LoginUser getSession(String token) {
        return null;
    }
}

